package com.coolbi.security.dao;

import com.coolbi.security.entity.Roles;

public interface RolesDao extends SimpleDao<Roles> {

	/**
	 * 检测角色名称是否存在
	 * @param name
	 * @return
	 */
	public int countByName(String name);
	
	/**
	 * 检测权限标签是否存在
	 * @param authority
	 * @return
	 */
	public int countByAuthority(String authority);
}
